import http from '../http.js'

export function getNurseServe(params) {
	return http.get('/system/server/nurseServe', params)
}

export function getVisitServe(params) {
	return http.get('/system/server/nurseVisitServe', params)
}
// 获取陪诊医院
export function getNurseHospital(params) {
	return http.get('/nurse/hospital/list', params)
}
// 获取陪诊医院详情
export function getNurseHospitalInfo(params) {
	return http.get('/nurse/hospital/getHospital', params)
}
// 获取当前登录人陪护人信息
export function getPatient(params) {
	return http.get('/system/patient/userInfo', params)
}
// 新增【新增被陪护人信息】
export function savePatient(params) {
	return http.post('/system/patient/add', params)
}
//修改【修改陪护人信息】
export function editPatient(params) {
	return http.put('/system/patient/edit', params)
}
// 获取【被陪护人】详细信息
export function getPatientById(params) {
	return http.get('/system/patient/getPatientInfo', params)
}
// 删除【删除陪护人信息】
export function delPatientById(params) {
	return http.get('/system/patient/remove', params)
}
// 立即支付
export function payOrder(params) {
	return http.post('/system/order/pay', params)
}

// 陪诊立即支付
export function payCompanionOrder(params) {
	return http.post('/system/companion/pay', params)
}
// 陪诊立即支付消息
export function paymentMessage(params) {
	return http.post('/nurse/access/paymentMessage', params)
}
// 保存订单
export function saveOrder(params) {
	return http.post('/system/order/add', params)
}

// 保存订单
export function saveCompantionOrder(params) {
	return http.post('/system/companion/add', params)
}
// 查询【客户订单】列表
export function orderList(params) {
	return http.get('/system/order/list', params)
}
// 获取【获取订单详情】详细信息
export function orderDetail(params) {
	return http.get('/system/order/orderId', params)
}
// 查询【护工】列表
export function workerList(params) {
	return http.get('/system/info/list', params)
}
// 派单
export function sendOrder(params) {
	return http.put('/system/order/waitOrder', params)
}
// 接单
export function takeOrder(params) {
	return http.put('/system/order/takingOrder', params)
}

// 接单
export function finishOrder(params) {
	return http.put('/system/order/cancelOrder', params)
}

// 护工项目详情
export function getServiceById(params) {
	return http.get('/system/server/nurseServeInfo', params)
}

// 取消订单
export function cancelOrder(params) {
	return http.put('/system/order/cancelOrder', params)
}

// 删除订单
export function delOrder(params) {
	return http.get('/system/order/remove', params)
}
// 退款信息
export function refundInfo(params) {
	return http.get('/system/order/refundInfo', params)
}
// 退款信息
export function CompaionEefundInfo(params) {
	return http.get('/system/companion/refundInfo', params)
}
// 申请退款
export function applyRefund(params) {
	return http.put('/system/order/refundOrder', params)
}
// 陪诊申请退款
export function applyCompaionRefund(params) {
	return http.post('/system/companion/refundOrder', params)
}
// 上门打卡
export function clockIn(params) {
	return http.put('/system/order/serverOrder', params)
}

// 订单退款审核
export function auditRefund(params) {
	return http.post('/system/order/refund', params)
}
// 消息订阅
export function subscribe(params) {
	return http.post('/nurse/access/pushMessage', params)
}

// 优惠券列表
export function couponList(params) {
	return http.get('/nurse/coupon/list', params)
}

// 结束订单
export function endOrder(params) {
	return http.put('/system/order/overOrder', params)
}

// 查询服务项
export function getServiceItem(params) {
	return http.get('/system/server/nurseProject', params)
}

// 查询服务列表
export function getServiceList(params) {
	return http.post('/system/server/nurseServe', params)
}

// 查询服务列表
export function adminOpenId(params) {
	return http.post('/nurse/access/adminOpenId', params)
}
// 查询时间
export function Days(params) {
	return http.get('/system/order/days', params)
}